<?php

return [
    'bootstrap' => ['queue'],
    'components' => [
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            'useFileTransport' => true,
        ],
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=rfid',
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8mb4',
            'tablePrefix' => 'zx_',
            'enableSchemaCache' => !YII_DEBUG,
            'schemaCacheDuration' => 3600,
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['info', 'error', 'warning'],
                    'logFile' => '@app/runtime/queue/' . date('Ym/d') . '.log',
                    'logVars' => ['_GET', '_POST'],
                    'categories' => ['queue'],
                ]
            ],
        ],
        'queue' => [
            'class' => \yii\queue\file\Queue::class,
            'as log' => \yii\queue\LogBehavior::class,
            'path' => '@app/runtime/queue',
        ],
        'dysms' => [
            'accessKeyId' => 'LTAIXwcdEr7wamgY',
            'accessKeySecret' => 'BDcmDzvGl1Rnz8VLlW8AkTTqXCqUN4',
        ],
        'security' => [
            'public_key' => 'ZDwJ662qLL&#$N&C',
            'secret_key' => md5('key'),
        ],
    ],
];
